import { createApp } from 'vue'
import App from './App.vue'
import 'virtual:svg-icons-register'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import globalComponent from '@/components/index'
import prisist from 'pinia-plugin-persistedstate'
//引入模板全局样式
import '@/styles/index.scss'
import router from '@/router/index'
//引入仓库
import pinia from '@/store/index'

pinia.use(prisist)
createApp(App)
  .use(pinia)
  .use(router)
  .use(globalComponent)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .mount('#app')
